package com.gxy.learn.design.model.create.factory.abstract_factory;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 美式风味的甜品工厂 生产美式咖啡 和抹茶慕斯
 * @author: gaoxueyong
 * @Date: 2022/11/7 10:24
 */
@Slf4j
public class AmericanDessertFactory implements DessertFactory{
    /**
     * 生产咖啡
     *
     * @return com.gxy.learn.design.model.create.factory.abstract_factory.Coffee
     * @Author gaoxueyong
     * @Date 10:26 上午 2022/11/7
     * @Param []
     **/
    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }

    /**
     * 生产甜品
     *
     * @return com.gxy.learn.design.model.create.factory.abstract_factory.Dessert
     * @Author gaoxueyong
     * @Date 10:26 上午 2022/11/7
     * @Param []
     **/
    @Override
    public Dessert createDessert() {
        return new MatchaMousse();
    }
}
